package com.etung.iot.demo.modles;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@Accessors(chain = true)
@TableName("iot_alarm_warning")
public class AlarmWarningEntity {
    @TableId(type= IdType.AUTO)
    private Long id;
    @TableField("user_id")
    private String userId;
    @TableField("alarm_id")
    private Integer alarmId;
    @TableField("project_id")
    private Long projectId;
    @TableField("box_id")
    private Integer boxId;
    private Date time;
    private Integer serious;
    @TableField("ack_time")
    private Date ackTime;
    @TableField("ack_flag")
    private Integer ackFlag;
}
